(someone's) brain clicks in

Translations
avoir un déclic
Definitions
This phrase means that someone suddenly starts to understand something, becomes alert, or begins to think clearly, often after a period of confusion or inattention.